package com.yupi.picturebackend.service;

import com.yupi.picturebackend.model.entity.PictureThumb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.picturebackend.model.entity.User;

/**
* @author 伍立权
* @description 针对表【picture_thumb(图片点赞)】的数据库操作Service
* @createDate 2025-04-20 17:06:01
*/
public interface PictureThumbService extends IService<PictureThumb> {
    /**
     *  点赞
     * @param pictureId
     * @param loginUser
     * @return
     */
    int doPictureThumb(long pictureId, User loginUser);

    /**
     * 帖子点赞（内部服务）
     * @param userId
     * @param pictureId
     * @return
     */
    int doPictureThumbInner(long userId, long pictureId);
}
